/**
 * @BelongsProject: test
 * @BelongsPackage: com.hmall.api.user
 * @Author: 王明天
 * @CreateTime: 2025/2/19 20:30
 * @Description: UserClient
 */
package com.hmall.api.user;

import com.hmall.api.user.userDto.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "test-user",path = "/users")
public interface UserClient {

    @GetMapping("/{id}")
    User getUser(@PathVariable Long id);
}
